/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package no.uia.ikt.gateway;

/**
 *
 * @author Xiaobo
 */
public class Decompositor {

    private Gateway2 gateway;
	
	public Decompositor(){
		gateway = new Gateway2();
	}
	
    
    public void sendEvent(String str){
    	String[] strArr = str.split(",");
    	gateway.display(strArr);
    }
    
	public String[] decomposite(String str){
		String[] strArr = str.split(",");
		for(int i=0; i<strArr.length;i++){
			System.out.println("--" + strArr[i]);
		}
		return strArr;
	}
}
